<template>
  <div id="map"></div>
  <img :src="positionIconUrl" @click="useToggleMap" />
</template>

<script setup>
import positionIconUrl from '@/assets/icon/图层.svg'
import { initMap } from './Hooks/initMap'
import { useToggleMap } from './Hooks/useToggleMap'
initMap()
</script>

<style scoped>
#map {
  width: 100%;
  height: 100vh;
}
img {
  z-index: 1000;
  position: absolute;
  top: 140px;
  left: 13px;
}
</style>
